package com.cadre.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cadre.system.domain.officer.A12;
import com.cadre.system.mapper.A12Mapper;
import com.cadre.system.service.A12Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("A12Service")
/* loaded from: A12ServiceImpl.class */
public class A12ServiceImpl extends ServiceImpl<A12Mapper, A12> implements A12Service {
    @Autowired
    A12Mapper a12Mapper;

    @Override // com.tdqy.cadre.modular.profess.service.A12Service
    @Transactional(rollbackFor = {Exception.class})
    public int deleteByPersonId(String personid) {
        return this.a12Mapper.deleteByPersonId(personid);
    }

    @Override // com.tdqy.cadre.modular.profess.service.A12Service
    public List<A12> selectList(String personId) {
        LambdaQueryWrapper<A12> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(A12::getPersonid, personId);
        lambdaQueryWrapper.orderByAsc(A12::getSerial);
        return a12Mapper.selectList(lambdaQueryWrapper);
    }
}
